<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
   
   <ui:define name="login" >
	<br />
	<br />
    
		  <h:form id="loginform" rendered="#{appUser.userLogin == null and not appUser.actualizePassword }" >
		  <center ><table class="formulario">
		  		<tr><td colspan="2">
					<div class="intro"><h:outputText value="#{messages.msgAskingLogin}" styleClass = "outputtext"/></div>
				</td></tr>
				<tr>
				<td class="label"><h:outputText value="#{messages.userName}" styleClass = "outputtext" /></td>
				<td class="input"><h:inputText value="#{appUser.userName}"  size ="24"/></td>
				</tr>
				<tr>
				<td class="label"><h:outputText value="#{messages.password}" styleClass = "outputtext"/></td>
				<td class="input"><h:inputSecret value="#{appUser.password}" size ="24"/></td>
				</tr>
				<tr><td colspan="2" valign="bottom" align="center">
                            <div style="line-height:30px">
					<h:commandLink action="actualizar-password.jsf" actionListener="#{appUser.changePassword}" value="#{messages.actualizePassword}" styleClass="commandLink"/>
					</div>
					</td></tr>
					<tr><td colspan="2" valign="bottom" align="center">
					<h:commandButton id ="button" action="#{appUser.loginUser}" value="Ingresar" styleClass="ingresarbutton"/>
					
				</td></tr>
				<tr><td colspan="2" valign="bottom" align="center">
					<h:outputText value="#{messages.msgUserPasswordIncorrect}" rendered="#{appUser.userDontFound}" style="FONT-WEIGHT: bold; COLOR: #ff0000;" styleClass = "outputtext"/>
				</td></tr>
		  
		  </table></center>
		  
			</h:form> 
	 
	 
  </ui:define>
 	 <ui:define name="body">
  
  </ui:define>
   	
</ui:composition>
